// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import iView from 'iview'
import axios from './config/http'
import store from './store/store'
import 'iview/dist/styles/iview.css'
import 'swiper/dist/css/swiper.min.css'
import '../static/UE/ueditor.config.js'
import '../static/UE/ueditor.all.js'
import '../static/UE/lang/zh-cn/zh-cn.js'
import '../static/UE/ueditor.parse.js'


Vue.use(iView)

Vue.config.productionTip = false;
Vue.prototype.axios = axios;

Vue.filter('initTime', function(value) {
    if (!value || (value == '')) {
        return '';
    } else {
        return value.substr(0, 10);
    }
});

/* eslint-disable no-new */
new Vue({
    el: '#app',
    axios,
    router,
    store,
    template: '<App/>',
    components: { App }
})
